package com.symone.webcms.service;

import com.symone.webcms.model.Notification;
import com.baomidou.mybatisplus.service.IService;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import java.util.List;
/**
 *   @description : Notification 服务接口
 *   ---------------------------------
 * 	 @author Archer Chu
 *   @since 2019-03-19
 */
public interface NotificationService extends IService<Notification> {

        boolean insert(Notification notification);

        Page<Notification> findPage(Page<Notification> page, Wrapper<Notification> notification);

        List<Notification> findAll();

        int delete(long id);

        int clearAllByUid(Long userId);

        void setAllRead(Long userId);

}
